﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div> 
        <form method="post">
            <h1>你要购买火车票的人员如下</h1>
            <p>名字<input type="text" name="name" /></p>
            <p>名字<input type="text" name="name" /></p>
            <p>名字<input type="text" name="name" /></p>
            <p>名字<input type="text" name="name" /></p>
            <button type="button">购买</button>
            @if (ViewBag.Name !=null)
            {
                var name = ViewBag.Name as IList<string>;
                foreach (var item in name)
                {
                    <p>@item</p>
                }
            }
        </form>
    </div>
</body>
</html>
